PV-on-HVM: Conditionally disable checksum offload for receive on some
authorIan Campbell <ian.campbell@xensource.com>
Thu, 2 Nov 2006 11:56:26 +0000 (11:56 +0000)
committerIan Campbell <ian.campbell@xensource.com>
Thu, 2 Nov 2006 11:56:26 +0000 (11:56 +0000)
commit680c789da1c81f3fd29073abc2922feeb3764eb1
treea7f2edb1c43fda75591eb6fe02bfdaa6a858afa7
parent4101fafcc01b226bb48576d48ea36cc505d2c288
PV-on-HVM: Conditionally disable checksum offload for receive on some
older kernels.

On some older kernels the CHECKSUM_UNNECESSARY flag on received
skbuffs is not honoured by all subsystems, specifically netfilter
under 2.6.9-42.EL

To work around this we need to ensure that the correct checksum is
calculated at some point. We can cause the backend to do this for us
by advertising to the backend that we cannot support checksum offload.

The correlation of this issue with the presence of NETIF_F_TSO is not
100% but it is a good first approximation.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c